<?php

namespace App\Models;

use Illuminate\Database\Eloquent\Model;


class ServerEngine extends Model
{

    protected $table ='server_engine';

    protected $hidden=['key'];
    public function user(){
        return $this->belongsTo('App\Models\User','user_id','id');
    }

    public function serverAuth(){
        return $this->hasMany('App\Models\ServerAuth','server_engine_id','id')->with('user')->orderBy('id','desc');
    }
}
